<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="text" />
<xsl:template match="/">
Imports System
Imports System.Data
Imports System.Data.SqlClient
Imports System.Data.SqlTypes
Imports System.Xml
Imports System.Reflection
Imports ESpace.DALibrary

Namespace <xsl:value-of select="Schema/@DataEntityNameSpace" />
    Public Class <xsl:value-of select="Schema/@TableName" />
		Inherits DataEntityBase
        Public Sub New()
            MyBase.InitMetaData()
        End Sub
        <xsl:for-each select="Schema/Columns">
        Private <xsl:value-of select="concat('_',COLUMN_NAME,' As ',LANGUAGE_TYPE)" />
		Public Property <xsl:value-of select="concat(COLUMN_NAME,'() As ',LANGUAGE_TYPE)" />
			Get
				Return _<xsl:value-of select="COLUMN_NAME" />
			End Get
			Set(ByVal Value As <xsl:value-of select="LANGUAGE_TYPE" />)
				_<xsl:value-of select="COLUMN_NAME" /> = Value
			End Set
        End Property
		</xsl:for-each>
	End Class
End Namespace</xsl:template>
</xsl:stylesheet>